//
//  SARenderInterface.h
//  GameFrame
//
//  Created by Hiroshi Nomura on 2014/05/24.
//  Copyright (c) 2014年 Hiroshi Nomura. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol SARenderInterface <NSObject>

@property (nonatomic, assign)GLuint program;

- (id) initWithContext:(EAGLContext*)context andDrawable:(id<EAGLDrawable>)drawable;

- (void)buildProgramWithVertexShader:(NSString*)vpath ofVType:(NSString*)vtype
                               FragmentShader:(NSString*)fpath ofFType:(NSString*)ftype;
- (void)destroyProgram;

- (void)render:(Matrix4x4*)viewMatrix objects:(NSArray*)objectArray;

@end
